package com.example.tijianserver.service;

import com.example.tijianserver.dto.OrdersPageRequestDto;
import com.example.tijianserver.dto.OrdersPageResponseDto;
import com.example.tijianserver.pojo.Orders;
import com.example.tijianserver.response.ApiRestResponse;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrdersService {
    ApiRestResponse InsertOrders(Orders orders);

    List<Orders> getOrder(Orders orders);

    List<Orders> getReport(Orders orders);


    OrdersPageResponseDto listOrders(OrdersPageRequestDto request);

    //取消预约
    ApiRestResponse<Object> cancelOrder(Integer orderId);

    Orders getOrdersById(Integer orderId);

    int updateOrdersState(Orders orders);
}
